package com.example.excel.constant;

/**
 * @author Aaron
 * @since 2021/7/19 13:58
 * <p>描述：</p>
 */
public class Const {

    public interface Regex {

        /**
         * 换行正则
         */
        String NEWLINE = "\\n";
        /**
         * 日期正则：yyyy-MM-dd
         */
        String DATEFORMAT = "20\\d{2}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])";
        /**
         * 手机号匹配
         */
        String TEL = "^1[3-9]\\d{9}$";
        /**
         * 车牌号
         */
        String CAR_NUM = "^(([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-Z](([0-9]{5}[DF])|([DF]([A-HJ-NP-Z0-9])[0-9]{4})|(([0-9]{5}[DF])|([DF][A-HJ-NP-Z0-9]{5}))))|(([京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领]|[A-Z])[A-Z][A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳使领]))$";
        /**
         * 车型
         */
        String CAR_TYPE = "[1-6]";

    }

    public interface Number {
        int THIRTY_TOW = 32;
        int HUNDRED = 100;
        int UNSIGNED_CHAR = Byte.MAX_VALUE * 2;

    }


}
